package com.mall.shopping.converter;

import com.mall.shopping.dal.entitys.Panel;
import com.mall.shopping.dal.entitys.PanelContent;
import com.mall.shopping.dal.entitys.PanelContentItem;
import com.mall.shopping.dto.PanelContentDto;
import com.mall.shopping.dto.PanelContentItemDto;
import com.mall.shopping.dto.PanelDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import java.math.BigDecimal;
import java.util.List;

@Mapper(componentModel = "spring")
public interface PanelListToPanelListConverter{

    List<PanelDto> panelListToPanelDtoList(List<Panel> panels);

    PanelContentItem panelPanelContentToContentItem(PanelContent panelContent, String productName, BigDecimal salePrice,String subTitle);

    List<PanelContentItem> panelContentsToPanelContentItems(List<PanelContent> panelContents);

    List<PanelContentDto> panelContentsToContentDtos(List<PanelContent> panelContents);
}
